<template>
    <div class="tab-container">
        <el-tabs style='margin-top:15px;' v-model="activeName">
            <el-tab-pane :label="$t('route.ElectricChannel')" name="first">
                <electric-pin v-if="activeName === 'first'"></electric-pin>
            </el-tab-pane>
            <el-tab-pane :label="$t('ElectricChannel.channelConfig')" name="second">
                <channel-config v-if="activeName === 'second'"></channel-config>
            </el-tab-pane>
            <el-tab-pane :label="$t('ElectricChannel.urlDispatch')" name="third">
                <url-dispatch v-if="activeName === 'third'"></url-dispatch>
            </el-tab-pane>
        </el-tabs>
    </div>
</template>

<script>
    export default {
      data() {
        return {
          activeName: 'first'
        }
      },
      components: {
        'electric-pin': () => import('./components/ElectricPin'),
        'channel-config': () => import('./components/channelConfig'),
        'url-dispatch': () => import('./components/urlDispatch')
      }
    }
</script>

<style scoped>
.tab-container {
  margin: 30px 15px;
}
</style>